<?php

namespace app\admin\logic;
use AlipayConfig;
use AlipayFundTransUniTransferRequest;
use AopCertClient;
use app\common\basics\Logic;
use think\Db;

/**
 * 工作台统计
 * Class StatLogic
 * @package app\admin\logic\index
 */
class MarkLogic extends Logic
{
    public static function makekey(){
        $str = 'abcdefghjkmnpqrstuvwxyz';
        $alphabet = str_shuffle($str);
        $result = substr($alphabet, 0, 3);

        $num_l = '22222223333333444444455555556666666777777788888889999999';
        $alphabet = str_shuffle($num_l);
        $result .= substr($alphabet, 0, 7);

        if (Db::name('mark')->where('key',$result)->find()){
            self::makekey();
        }
        return $result;

    }


}